package com.example.learn.service.impl;


import com.example.learn.mapper.PlanMapper;
import com.example.learn.pojo.Plans;
import com.example.learn.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PlanServiceImpl implements PlanService {

    @Autowired
    PlanMapper planMapper;


    @Override
    public List<Plans> getPlanList() {
        return planMapper.getPlanList();
    }

    @Override
    public int addPlan(Plans plan) {
        return planMapper.addPlan(plan);
    }

    @Override
    public int delPlanById(String id) {
        return planMapper.delPlanById(id);
    }

    @Override
    public int setPlanById(String id) {
        return planMapper.setPlanById(id);
    }
}
